package com.xiashitech.agent.instrumentation.biz.api.increment.inst;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;

import java.util.Arrays;
import java.util.List;

import static java.util.Arrays.asList;

@AutoService(InstrumentationModule.class)
public class XSApiIncrementInstrumentationModule extends InstrumentationModule {

    public XSApiIncrementInstrumentationModule() {
        super("xs.api-increment");
    }

    @Override
    public List<TypeInstrumentation> typeInstrumentations() {
        return asList(
                new XSApiIncrementSpringInstrumentation(),
                new XSApiIncrementStrutsnstrumentation()
        );
    }

    public List<String> getAdditionalHelperClassNames() {
        return Arrays.asList(
                "com.xiashitech.agent.instrumentation.biz.api.increment.ApiIncrementHelper",
                "com.xiashitech.agent.utils.XSUtil"
        );
    }

}
